<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php echo $this->headTitle() . PHP_EOL; ?>
    <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('/style/error.css')?>" />
  </head>
  <body>
    <div id="wrapper">
      <h1><?php echo $this->translate($this->title)?></h1>
      <p><?php echo $this->translate($this->message) ?></p>
      <p><?php echo $this->translate('Please inform the author of that page about the error.') ?></p>
      <p><a href="mailto:henriquemoody@gmail.com">Henrique Moody</a></p>
      <?php if (APPLICATION_ENV == 'development' || (isset($this->user['id']) && $this->user['id'] == 2)): ?>
        <h3>Exception information:</h3>
        <p>
          <b>Message:</b> <?php echo $this->exception->getMessage() ?>
        </p>
        <h3>Stack trace:</h3>
        <pre><?php echo $this->exception->getTraceAsString() ?></pre>
        <h3>Request Parameters:</h3>
        <pre><?php var_dump($this->request->getParams()) ?> </pre>
      <?php endif ?>
    </div>
  </body>
</html>